package resource

import (
	"micro-grpc-server/services/wechat/internal/models"
	pb "micro-grpc-server/services/wechat/proto"
)

type MediaResource struct{}

// 用户模型转pb
func (r *UserResource) MediaToProto(media *models.Media) *pb.WechatMedia {
	var u = &pb.WechatMedia{
		Id: media.Id,
	}
	return u
}
